package org.fusionide.builder.parsers.cfml.tags;

import org.fusionide.builder.parsers.cfml.CFMLTag;

public class Output extends CFMLTag {
	private String group;

	private String groupcasesensitive;

	private String maxrows;

	private String query;

	private String startrow;

	public Output(String attributes, int startOffset) {
		super(attributes, startOffset);

		if (attributes == null)
			return;

		this.group = getAttribute("group");
		this.groupcasesensitive = getAttribute("groupcasesensitive");
		this.maxrows = getAttribute("maxrows");
		this.query = getAttribute("query");
		this.startrow = getAttribute("startrow");
	}

	@Override
	public boolean requiresClosingTag() {
		return true;
	}

	@Override
	public boolean acceptsChildren(CFMLTag tag) {
		return super.acceptsChildren(tag);
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getGroupcasesensitive() {
		return groupcasesensitive;
	}

	public void setGroupcasesensitive(String groupcasesensitive) {
		this.groupcasesensitive = groupcasesensitive;
	}

	public String getMaxrows() {
		return maxrows;
	}

	public void setMaxrows(String maxrows) {
		this.maxrows = maxrows;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	public String getStartrow() {
		return startrow;
	}

	public void setStartrow(String startrow) {
		this.startrow = startrow;
	}
}
